package service.sheetmanager;

import java.util.List;

import org.springframework.validation.Errors;
import entities.Sheet;
import entities.Status;
import web.form.SheetInfo;
import web.form.SheetView;

public interface ISheetManager {
	public Status updateSheet(SheetView view, Errors errors);
	public SheetView findSheet(String code, String type);
	public List<Sheet> findSheetsByPropertyLike(String propertyName, String propertyValue,
			String type);
	public List<SheetView> findAllSheets(String type);
	public String generateSheetTitle(Sheet sheet);
	public SheetInfo generateSheetInfo(Sheet sheet);
	public SheetView generateSheetView(Sheet sheet);
	public boolean personIsAllowedToModifySheet(String personCode, String sheetCode);
}
